<?php

namespace ApiWF\Model;
use Think\Model\ViewModel;

class UsersCouponViewModel extends ViewModel {

    public $viewFields = array(
        'UsersCoupon'=>array('*'),
        //'Users'=>array('name'=>'category_name','_table'=>'wf_merch_category', '_on'=>'UsersCoupon.uid=Users.id'),
        'Coupon'=>array('coupon_title','coupon_description','coupon_contact','coupon_price','coupon_pic','start_time','end_time','create_time','update_time', '_on'=>'UsersCoupon.coupon_id=Coupon.id'),
    );
}